package com.database.service;

import java.util.List;

import com.database.model.Address;
import com.database.model.Collect;
import com.database.model.Food;
import com.database.model.Menu;
import com.database.model.Order;
import com.database.model.Shop;
import com.database.model.User;
import com.database.model.param.OrderParam;
import com.database.model.param.UserParam;
import com.database.model.vo.CollectVo;
import com.database.model.vo.OrderVo;

public interface UserService {
	/** 登陆**/
	User login(User user);

	/**注册**/
	int registeUser(UserParam userParam);

	/**查看店铺列表**/
	List<Shop> findShopList();

	/**查看店铺菜单**/
	List<Food> findFoodList(Food food);

	/**生成订单**/
	int createOrder(OrderParam orderParam);

	/**查看订单状态 ,查看历史订单**/
	List<OrderVo> findOrderList(Order order);

	/**查看单个订单**/
	List<Menu> findOrder(Menu menu);

	/** 评价订单**/
	int estimateOrder(Order order);

	/**查看余额**/
	User findBalance(User user);

	/** 钱包充值**/
	int addBalance(User user);

	/**查看地址**/
	List<Address> selectAddressByUserId(User user);

	/**删除收藏地址**/
	int deleteAddressByKey(Address address);

	/**添加收藏地址信息**/
	int insertAddress(Address address);

	/** 更新收藏地址**/
	int updateAddressByKey(Address address);
	
	/** 更新个人信息**/
	int updateUserInfo(User user);
	
	/**测试提交订单**/
	int testOrder(Order order);
	
	/**查看收藏店铺**/
	List<CollectVo> findCollectShopList(Collect collect);
	
	/**添加收藏店铺**/
	int aadCollectShop(Collect collect);
	
	/**用户查询附近美食**/
	List<Shop> selectLikeAddress(Shop shop);

}
